package com.xinghen.common.base.model.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author xinghen
 * @ClassName: BaseTree
 * @Package: com.xinghen.common.base.model.dto
 * @Description tree基类
 * @create 2018-04-17 11:35
 */
@Data
public class BaseTree<E, ID> implements Serializable {

    private static final long serialVersionUID = -5703964834600572016L;

    /**
     * ID
     */
    private ID id;

    /**
     * 父ID
     */
    private ID pid;

    /**
     * 是否有子节点
     */
    private boolean hasChild;

    /**
     * 子节点集合
     */
    private List<E> children;

}
